package spring.cloud.tasks.tasks_manager.schedule;

import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Setter
@Getter
public class FireDateTimeAndPreAssignDateTime {
    private String taskType;
    private String taskId;
    private Date nextPreAssignDate;
    private Date nextFireDate;
    private long fireDateTimeVersion;

    public FireDateTimeAndPreAssignDateTime(String taskType, String taskId, Date nextPreAssignDate, Date nextFireDate, long fireDateTimeVersion) {
        this.taskType = taskType;
        this.taskId = taskId;
        this.nextPreAssignDate = nextPreAssignDate;
        this.fireDateTimeVersion = fireDateTimeVersion;
        this.nextFireDate = nextFireDate;
    }

}
